Skip to content

docs: document greptime_mito_scan_max_concurrent_files metric - #3070

Merged
fengjiachun merged 2 commits into
GreptimeTeam:mainfrom
fengjiachun:docs/mito-scan-concurrency-metric
Dec 2, 2026
Merged

fengjiachun merged 2 commits into
GreptimeTeam:mainfrom
fengjiachun:docs/mito-scan-concurrency-metric

Conversation

@fengjiachun

Copy link
Copy Markdown
Contributor

What changed

Document the greptime_mito_scan_max_concurrent_files Prometheus histogram introduced in GreptimeTeam/greptimedb#9758 and backported to v1.3 in GreptimeTeam/greptimedb#9963 (the scan-memory configuration options and breaking changes from #9101 in #9963 were already documented in #2974):

  • user-guide/deployments-administration/configuration.md (Scan memory accounting / 扫描内存计量): document the metric type (histogram), type label values (query and compaction), recording points, and semantics — specifically that it records planned maximum concurrent sources per region scan limit evaluation (including memtable sources, rejected scans, and memory-budgeted scans) or all input SST files per compaction reader, rather than live open files, along with the official Grafana Scan Max Concurrent Files per Instance panel.
  • user-guide/deployments-administration/performance-tuning/performance-tuning-tips.md (Query -> Metrics / 查询 -> 指标): add greptime_mito_scan_max_concurrent_files to the query-diagnostic metrics table with a link to the Scan memory accounting section.

Closes #2998

Scope

  • Documentation versions: Nightly, 1.3
  • Languages: English, Chinese
  • Reviewed upgrade.md in Nightly and 1.3 (EN/ZH): the scan-memory breaking changes from #9101 are already documented under Upgrading from v1.2 to v1.3 (Scan memory accounting changes / 扫描内存计量变更), and greptime_mito_scan_max_concurrent_files is an additive observability metric, so no upgrade.md edits are needed. Navigation is unchanged.

Verification

Verified against GreptimeTeam/greptimedb v1.3.2 (06e9dfee115e9d1bff581207515a88966752178e; metric present since v1.3.0) and main (e736a2ee9e33548a03b440053def9c02b1a95e0b):

  • src/mito2/src/metrics.rs: SCAN_MAX_CONCURRENT_FILES registered as HistogramVec named greptime_mito_scan_max_concurrent_files with label type.
  • src/mito2/src/read/seq_scan.rs: check_scan_limit observes type="query" before uses_scan_memory_limit() and max_concurrent_scan_files checks; build_flat_reader_for_compaction observes type="compaction" with self.stream_ctx.input.num_files().
  • src/mito2/src/read/series_scan.rs: check_scan_limit observes type="query" with the sum of range_meta.indices.len() (including memtable sources) before limit checks.
  • grafana/dashboards/metrics/{cluster,standalone}/dashboard.md: confirmed the Scan Max Concurrent Files per Instance panel displays p95, p99, and average by instance and type.
  • Reviewed the full diff of GreptimeTeam/greptimedb#9963 (config/config.md, src/mito2/src/config.rs, src/mito2/src/metrics.rs) and confirmed no other configuration keys or metrics remain undocumented.

Commands run:

  • git diff --check passed
  • DOC_LANG=en pnpm check:links passed
  • DOC_LANG=zh pnpm check:links passed

Checklist

  • I verified the content against the applicable GreptimeDB version.
  • I updated the relevant documentation versions and languages, or explained why not.
  • I checked changed links and anchors.
  • I updated navigation when the document structure changed (not applicable; no navigation changes).
  • For a version cut, stable promotion, or feature backport, I reviewed Nightly upgrade entries against the target release, updated both Nightly and versioned English/Chinese guides, and recorded release evidence and the outcome (or marked this not applicable).

@fengjiachun
fengjiachun requested review from evenyag and removed request for killme2008 December 1, 2026 13:42
@fengjiachun
fengjiachun merged commit 788f8c2 into GreptimeTeam:main Dec 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update docs for feat(mito2)!: backport scan memory accounting and concurrency metrics to v1.3

2 participants